package com.yx.feign.api;

import com.yx.vo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname GoodsService
 * @Date 2021/07/16 20:54
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "shop-goods",
        path = "/goods"
)
public interface GoodsService {
    @GetMapping("/UpdateGoods/{id}")
    public Goods getGoodById(@PathVariable("id") Integer id);
}
